home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / rock / RTable$ClearAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  957 b   |  27 lines

  1. package com.extensibility.rock;
  2.  
  3. import com.extensibility.app.UI;
  4. import java.awt.event.ActionEvent;
  5. import javax.swing.text.JTextComponent;
  6.  
  7. public class RTable$ClearAction extends RAction {
  8.    // $FF: synthetic field
  9.    final RTable this$0;
  10.  
  11.    public RTable$ClearAction(RTable var1) {
  12.       super(UI.getString("edit.item.clear"), 66);
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void actionOccurred(ActionEvent var1) {
  17.       JTextComponent var2 = this.this$0.getCellEditorAsJTextComponent();
  18.       if (var2 != null) {
  19.          var2.replaceSelection("");
  20.       } else {
  21.          this.this$0.clear();
  22.       }
  23.  
  24.       RTable.access$5000071(this.this$0);
  25.    }
  26. }
  27.